package com.glsc.ngateway.common.base.domain.mysql.opmanage.report.regulatory;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Objects;

@Data
@Entity
@Table(name = "t_reg_rpt_interotc_a12")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
@IdClass(RegRptInterOtcA12.PK.class)
public class RegRptInterOtcA12 {
    @Id
    @Column(name = "main_id")
    private BigInteger mainId;

    @Column(name = "submit_org_name")
    private String submitOrgName;

    @Column(name = "submit_term")
    private String submitTerm;

    @Column(name = "submit_time")
    private String submitTime;

    @Id
    @Column(name = "id")
    private Integer Id;

    @Column(name = "hglx")
    private String hglx;

    @Column(name = "hgjycs")
    private String hgjycs;

    @Column(name = "jylsh")
    private String jylsh;

    @Column(name = "dsfqc")
    private String dsfqc;

    @Column(name = "dsfxz")
    private String dsfxz;

    @Column(name = "dsflb")
    private String dsflb;

    @Column(name = "sfgl")
    private String sfgl;

    @Column(name = "zqbm")
    private String zqbm;

    @Column(name = "zqzrcs")
    private String zqzrcs;

    @Column(name = "zqlx")
    private String zqlx;

    @Column(name = "qmje")
    private Double qmje;

    @Column(name = "zqsfgl")
    private String zqsfgl;

    @Column(name = "scjsrq")
    private String scjsrq;

    @Column(name = "dqjsrq")
    private String dqjsrq;

    @Column(name = "hgqx")
    private Double hgqx;

    @Column(name = "zjye")
    private Double zjye;

    @Column(name = "hgll")
    private Double hgll;

    @Column(name = "bz")
    private String bz;

    public RegRptInterOtcA12(){

    }

    public RegRptInterOtcA12(BigInteger mainId,String submitOrgName,String submitTerm,String submitTime,Integer id,String hglx,String hgjycs,String jylsh,
                             String dsfqc,String dsfxz,String dsflb,String sfgl,String zqbm,String zqzrcs,String zqlx,Double qmje,String zqsfgl,String scjsrq,
                             String dqjsrq,Double hgqx,Double zjye,Double hgll,String bz){
        this.mainId = mainId;
        this.submitOrgName = submitOrgName;
        this.submitTerm = submitTerm;
        this.submitTime = submitTime;
        this.Id = id;
        this.hglx = hglx;
        this.hgjycs = hgjycs;
        this.jylsh = jylsh;
        this.dsfqc = dsfqc;
        this.dsfxz = dsfxz;
        this.dsflb = dsflb;
        this.sfgl =sfgl;
        this.zqbm = zqbm;
        this.zqzrcs = zqzrcs;
        this.zqlx = zqlx;
        this.qmje = qmje;
        this.zqsfgl = zqsfgl;
        this.scjsrq = scjsrq;
        this.dqjsrq = dqjsrq;
        this.hgqx = hgqx;
        this.zjye = zjye;
        this.hgll = hgll;
        this.bz = bz;
    }

    public static class PK implements Serializable {
        private BigInteger mainId;
        private Integer Id;

        public BigInteger getMainId() {
            return mainId;
        }

        public void setMainId(BigInteger mainId) {
            this.mainId = mainId;
        }

        public Integer getId() {
            return Id;
        }

        public void setId(Integer Id) {
            this.Id = Id;
        }

        @Override
        public boolean equals(Object o) {
            if (this == o) {
                return true;
            }
            if (o == null || getClass() != o.getClass()) {
                return false;
            }
            PK pk = (PK) o;
            return Objects.equals(mainId, pk.Id) && Objects.equals(Id, pk.Id);
        }

        @Override
        public int hashCode() {
            return Objects.hash(mainId, Id);
        }
    }

    public void setMainId(BigInteger mainId) {
        this.mainId = mainId;
    }

    public BigInteger getMainId() {
        return mainId;
    }

    public String getSubmitOrgName() {
        return submitOrgName;
    }

    public void setSubmitOrgName(String submitOrgName) {
        this.submitOrgName = submitOrgName;
    }

    public String getSubmitTerm() {
        return submitTerm;
    }

    public void setSubmitTerm(String submitTerm) {
        this.submitTerm = submitTerm;
    }

    public String getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(String submitTime) {
        this.submitTime = submitTime;
    }

    public void setId(Integer id) {
        Id = id;
    }

    public Integer getId() {
        return Id;
    }

    public String getHglx() {
        return hglx;
    }

    public void setHglx(String hglx) {
        this.hglx = hglx;
    }

    public String getHgjycs() {
        return hgjycs;
    }

    public void setHgjycs(String hgjycs) {
        this.hgjycs = hgjycs;
    }

    public String getJylsh() {
        return jylsh;
    }

    public void setJylsh(String jylsh) {
        this.jylsh = jylsh;
    }

    public String getDsfqc() {
        return dsfqc;
    }

    public void setDsfqc(String dsfqc) {
        this.dsfqc = dsfqc;
    }

    public String getDsfxz() {
        return dsfxz;
    }

    public void setDsfxz(String dsfxz) {
        this.dsfxz = dsfxz;
    }

    public String getDsflb() {
        return dsflb;
    }

    public void setDsflb(String dsflb) {
        this.dsflb = dsflb;
    }

    public String getSfgl() {
        return sfgl;
    }

    public void setSfgl(String sfgl) {
        this.sfgl = sfgl;
    }

    public String getZqbm() {
        return zqbm;
    }

    public void setZqbm(String zqbm) {
        this.zqbm = zqbm;
    }

    public String getZqzrcs() {
        return zqzrcs;
    }

    public void setZqzrcs(String zqzrcs) {
        this.zqzrcs = zqzrcs;
    }

    public String getZqlx() {
        return zqlx;
    }

    public void setZqlx(String zqlx) {
        this.zqlx = zqlx;
    }

    public Double getQmje() {
        return qmje;
    }

    public void setQmje(Double qmje) {
        this.qmje = qmje;
    }

    public String getZqsfgl() {
        return zqsfgl;
    }

    public void setZqsfgl(String zqsfgl) {
        this.zqsfgl = zqsfgl;
    }

    public String getScjsrq() {
        return scjsrq;
    }

    public void setScjsrq(String scjsrq) {
        this.scjsrq = scjsrq;
    }

    public String getDqjsrq() {
        return dqjsrq;
    }

    public void setDqjsrq(String dqjsrq) {
        this.dqjsrq = dqjsrq;
    }

    public Double getHgqx() {
        return hgqx;
    }

    public void setHgqx(Double hgqx) {
        this.hgqx = hgqx;
    }

    public Double getZjye() {
        return zjye;
    }

    public void setZjye(Double zjye) {
        this.zjye = zjye;
    }

    public Double getHgll() {
        return hgll;
    }

    public void setHgll(Double hgll) {
        this.hgll = hgll;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }
}
